<?php


namespace frontend\controllers\cyf;


use servers\RedisServer;
use yii\web\Controller;
use yii\web\Request;

class MessageController extends Controller
{
    /**
     * 开启订阅
     * @param Request $request
     * @name cyf
     */
    public function actionOpensub(Request $request)
    {
//        print_r(132);die();
        $params = $request->post();
        //app名称,用户id
        RedisServer::entrance()->psubscribe('new');
    }
}